diff options
| author | Adam Soltys <[email protected]> | 2024-09-13 23:18:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-17 09:19:26 -0700 |
| commit | 6890311faca2bed1b8d22dbd88b8925f382eedd2 (patch) | |
| tree | 3468812c61ca739b3953c100b6477c7393bbc88a /src/routes/(app)/[username] | |
| parent | 11b981a1a58d96460d599726fe90565caa06b706 (diff) | |
| download | coinos-ui-6890311faca2bed1b8d22dbd88b8925f382eedd2.tar.gz coinos-ui-6890311faca2bed1b8d22dbd88b8925f382eedd2.zip | |
fix some redirects
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.server.ts | 1 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.server.ts b/src/routes/(app)/[username]/(profile)/+page.server.ts index 9c9be68a..ed4ee58c 100644 --- a/src/routes/(app)/[username]/(profile)/+page.server.ts +++ b/src/routes/(app)/[username]/(profile)/+page.server.ts @@ -1,6 +1,7 @@ import { auth, get } from "$lib/utils"; export async function load({ cookies, depends, parent }) { + depends("app:payments"); depends("app:items"); let { subject } = await parent(); diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 98b77fc9..03fbc454 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -14,7 +14,7 @@ $: rate = rates[currency]; $: total = items.reduce((a, b) => a + b.price * b.quantity, 0); - let refresh = (d) => ({ items, subject, user, rates } = d); + let refresh = (d) => ({ accounts, items, subject, user, rates } = d); $: refresh(data); let install = async () => { @@ -41,16 +41,16 @@ {/each} <div class="flex justify-center gap-2"> - <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white w-full justify-center" - > - <a href={`/account/setup`}> + <a href={`/account/setup`} class="contents"> + <button + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white w-full justify-center" + > <div class="mx-auto flex gap-2"> <Icon icon="plus" style="w-8 mx-auto invert" /> <div class="my-auto text-xl whitespace-nowrap">Add account</div> </div> - </a> - </button> + </button> + </a> {#if $installPrompt} <button |
